[MINIOS] Switched to new interface for HYPERVISOR_sched_op().
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 27 Nov 2006 10:23:19 +0000 (10:23 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 27 Nov 2006 10:23:19 +0000 (10:23 +0000)
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
extras/mini-os/include/x86/x86_32/hypercall-x86_32.h
extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
extras/mini-os/kernel.c

index 70e8997a86eca4939415368c4a87d890be6e52ba..5f8b51f872847d22698cd51e8b031ad1fe09f345 100644 (file)
@@ -167,7 +167,7 @@ HYPERVISOR_fpu_taskswitch(
 
 static inline int
 HYPERVISOR_sched_op(
-       int cmd, unsigned long arg)
+       int cmd, void *arg)
 {
        return _hypercall2(int, sched_op, cmd, arg);
 }
index 159149f48b8865ccd69d533f895900d0a8d41632..2d2904a218cbc8b16b1c93f6be5c8dc880a93939 100644 (file)
@@ -171,7 +171,7 @@ HYPERVISOR_fpu_taskswitch(
 
 static inline int
 HYPERVISOR_sched_op(
-       int cmd, unsigned long arg)
+       int cmd, void *arg)
 {
        return _hypercall2(int, sched_op, cmd, arg);
 }
index 152499ceb4c2793870ecbf1ec59b73e341534a2f..0799116aa6b8cc3a759dd533e934381f8ae930df 100644 (file)
@@ -159,5 +159,9 @@ void start_kernel(start_info_t *si)
 void do_exit(void)
 {
     printk("Do_exit called!\n");
-    for ( ;; ) HYPERVISOR_sched_op(SCHEDOP_shutdown, SHUTDOWN_crash);
+    for( ;; )
+    {
+        struct sched_shutdown sched_shutdown = { .reason = SHUTDOWN_crash };
+        HYPERVISOR_sched_op(SCHEDOP_shutdown, &sched_shutdown);
+    }
 }